<form id="login" class="form-horizontal" action="{{ path("fos_oauth_server_authorize", {  
            'client_id' : app.request.query.get('client_id'),  
            'response_type' : app.request.query.get('response_type'),  
            'redirect_uri' : app.request.query.get('redirect_uri'),  
            'state' : app.request.query.get('state'),  
            'scope' : app.request.query.get('scope') }) }}" {{ form_enctype(form) }} method="post" style="margin:0;">
    {{ form_widget(form) }}
</form>